package com.fruits.login.model.properties;

/**
 * 登录的一些静态数据
 */
public class LoginProperties {

    /**短信验证码位数*/
    public static final int SMS_CODE_SIZE = 6;

    /**生成playerId位数*/
    public static final int PLAYER_ID_SIZE = 8;

    /**两个小时内同一个IP只能注册5个账号*/
    /**时间限制*/
    public static final long CREATE_PLAYER_TIME_RESTRICT = 7200000L;
    /**个数限制*/
    public static final int CREATE_PLAYER_NUMBER_RESTRICT = 5;

    /**生成token的key*/
    public static final String CREATE_TOKEN_KEY = "aaa";

    /**生成uid时的key*/
    public static final String CREATE_UID_KEY = "UIDKEY";

    /**生成uid时的key*/
    public static final String CREATE_SIGN_KEY = "SIGN";

    public static final long ONE_MINUTE = 1000 * 60;

    /**短信验证码失效时间:两分钟:实际两分半,加半分钟延迟*/
    public static final long SMS_CODE_FAILURE_TIME = ONE_MINUTE * 2 + ONE_MINUTE / 2;

    /**四分钟内不能重复获取验证码*/
    public static final long SMS_CODE_ONCE_AGAIN = ONE_MINUTE * 4;

    /**验证码过期清除时间:十分钟*/
    public static final long SMS_CODE_CLEARING = ONE_MINUTE * 10;

    /**验证码一天最多获取次数:5*/
    public static final int SMS_CODE_MAXIMUM_DAY = 5;

    /**验证码获取的最短间隔时间:1分钟*/
    public static final long SMS_CODE_MIN_INTERVAL_TIME = 60000;

    /**手机玩家*/
    public static final int PLAYER_PHONE = 1;

    /**游客玩家*/
    public static final int PLAYER_REGISTER = 0;

    /**返回成功*/
    public static final int RETURN_MSG_SUCCESS = 1;

    /**返回失败*/
    public static final int RETURN_MSG_FAILE = 0;

}
